package com.michael.study.jetpack.module.user

import android.util.Log
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import com.michael.study.jetpack.bean.User

/**
 * Description:
 *
 * Created by liuguoquan on 2020/3/18 17:24.
 */
class UserProfileViewModel : ViewModel() {

    var users: MutableLiveData<MutableList<User>> = MutableLiveData()

    fun getUser() {
        var list: MutableList<User> = ArrayList()
        var range: IntRange = 0..10
        for (i in range) {
            var user = User("111", "$i")
            list.add(user)
        }
        users.value = list;
    }

}